#!/bin/bash

# Test cache push while in recovery

. ./common

for i in `seq 0 1`; do
    _start_sheep $i "-w size=400M"
done

_wait_for_sheep 2
_cluster_format -c 2

$DOG vdi create t 1G -P

# move objects into stale directory
_kill_sheep 0
_start_sheep 0 "-w size=400M"
_wait_for_sheep 2

dd if=/dev/zero | $DOG vdi write -w t &

_wait_for_sheep_recovery 1
wait

$DOG cluster info | _filter_cluster_info
